<?php
	include_once('config/config.php');
	include_once('config/database.php');
?>
<html>
<head>
	<link rel="icon" type="image/png" href="<?php echo $icone;?>">
	<title><?php echo $titulo_pagina;?></title>
	<link rel="stylesheet" type="text/css"  href="css/menu.css" />
	<link rel="stylesheet" type="text/css"  href="css/index.css" />
	<link rel="stylesheet" type="text/css"  href="css/forms.css" />
	<link rel="stylesheet" type="text/css"  href="css/teste.css" />
	<link rel="stylesheet" type="text/css"  href="css/container.css" />
	<style>
	input, select{ 	
		border-radius:4px;
		-moz-border-radius:4px;
		-webkit-border-radius:4px;
		box-shadow: 1px 1px 2px ;	
		-moz-box-shadow: 1px 1px 2px ;
		-webkit-box-shadow: 1px 1px 2px ;
		border:1px solid #000000;

	}
	label.error {
		font-size:14px;
		margin-right: 0px;
		text-align: right;
		width: 100px;
		color:red;
	}

	</style>
	<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
	<script type="text/javascript" src="js/jquery.validate.min.js"></script>
	<script type="text/javascript" language="javascript" >
		$(document).ready(function(){
			var container = $('div.container');
			$("#form").validate({
				errorContainer: container,
				errorLabelContainer: $("ol", container),
				wrapper: "li",
				submitHandler: function() { 
					$("#form").submit();
				}
			});		
		});
	</script>
</head>
<body>
	<?php
	include_once('templates/cabecalho.php');
	?>
	<div class="container">
	<h4>Favor preencha os campos abaixo citados:</h4>
	<ol>
		<li><label for="email" class="error"></label></li>
		<li><label for="phone" class="error"></label></li>
	</ol>
	</div>
	<div style="margin-top:150px;margin-bottom:150px;margin-right:auto/margin-left:auto;text-align:center;">
		<form id="form" method="post" action="dblogin.php">
			<center>
			<table border=0>
			<tr>
			<td><label for="username">Username:</label></td>
			<td><input type="text" id="username" name="username" maxlength="50" title="Preencha o login" required /></td>
			</tr>
			<tr>
			<td><label for="passwd">Password:</label></td>
			<td><input type="password" id="passwd" name="passwd" title="Preencha a senha" required/></td>
			</tr>
			</table><br />
			<input type="submit" value="Entrar" />
			</center>
		</form>
	</div>
	<?php
	include_once('templates/rodape.php');
	?>
</body>
</html>